package cn.xscrum.demo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.xscrum.demo.mapper.CityTrackListMapper;
import cn.xscrum.demo.domain.CityTrackList;
import cn.xscrum.demo.service.ICityTrackListService;
import cn.xscrum.common.core.text.Convert;

/**
 * 换乘政策大屏可视化Service业务层处理
 * 
 * @author xscrum
 * @date 2020-11-26
 */
@Service
public class CityTrackListServiceImpl implements ICityTrackListService 
{
    @Autowired
    private CityTrackListMapper cityTrackListMapper;

    /**
	 * 查询换乘政策大屏可视化
     * 
     * @param no 换乘政策大屏可视化ID
     * @return 换乘政策大屏可视化
     */
    @Override
    public CityTrackList selectCityTrackListById(Long no)
    {
        return cityTrackListMapper.selectCityTrackListById(no);
    }

    /**
	 * 查询换乘政策大屏可视化列表
     * 
     * @param cityTrackList 换乘政策大屏可视化
     * @return 换乘政策大屏可视化
     */
    @Override
    public List<CityTrackList> selectCityTrackListList(CityTrackList cityTrackList)
    {
        return cityTrackListMapper.selectCityTrackListList(cityTrackList);
    }

    /**
	 * 新增换乘政策大屏可视化
     * 
     * @param cityTrackList 换乘政策大屏可视化
     * @return 结果
     */
    @Override
    public int insertCityTrackList(CityTrackList cityTrackList)
    {
        return cityTrackListMapper.insertCityTrackList(cityTrackList);
    }

    /**
	 * 修改换乘政策大屏可视化
     * 
     * @param cityTrackList 换乘政策大屏可视化
     * @return 结果
     */
    @Override
    public int updateCityTrackList(CityTrackList cityTrackList)
    {
        return cityTrackListMapper.updateCityTrackList(cityTrackList);
    }

    /**
	 * 删除换乘政策大屏可视化对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCityTrackListByIds(String ids)
    {
        return cityTrackListMapper.deleteCityTrackListByIds(Convert.toStrArray(ids));
    }

    /**
	 * 删除换乘政策大屏可视化信息
     * 
     * @param no 换乘政策大屏可视化ID
     * @return 结果
     */
    @Override
    public int deleteCityTrackListById(Long no)
    {
        return cityTrackListMapper.deleteCityTrackListById(no);
    }
}
